<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@ include file="../common/common.jsp"%>
		<script type="text/javascript">
			var basepath = <%=request.getContextPath() + "/"%>
			$(function(){
				var height = window.document.body.offsetHeight-50;
				$("#staff_salary_table").datagrid({
					height : height,
					fitColumns:true,
					//fit:true,
					pagination:true,//分页数据
					rownumbers: true,
					loadMsg:'正在加载数据,请稍后',
					pageSize:10,
					url:basepath+'contractInfoAction!loadMainContractInfo.do',
					columns:[[  
					          {field:'clientcode',title:'员工姓名',width:100},  
					          {field:'clientname',title:'所属部门',width:100},  
					          {field:'clientcontract',title:'员工编号',width:100}
				    ]],
				    toolbar : [{
				    	text : '新增',
				    	iconCls : 'icon-add',
				    	handler : function(){
				    		$('#salary_level_info_win').window('open');
							$('#salary_level_info_win').window('setTitle', '工资录入前操作');
				    	}
				    },{
				    	text : '编辑',
				    	iconCls : 'icon-edit',
				    	handler : function(){
				    		$('#win').window('open');
				    	}
				    },{
				    	text : '删除',
				    	iconCls : 'icon-no',
				    	handler : function(){
				    		 $.messager.confirm('信息提示','你是否要删除当前选中数据?',function(r){  
				   				  if(r){
				   					  $.messager.alert('信息提示','删除成功');
				   				  }
				   			 });
				    	}
				    },{
				    	text : '查看',
				    	iconCls : 'icon-ok',
				    	handler : function(){
				    		
				    	}
				    }]
				});
				$('#salary_month_info_add').click(function(){
					$('#salary_level_info_win').window('close');
					$('#salary_info_win').window('open');
					$('#salary_info_win').window('setTitle', '新增员工工资信息');
				});
			});
		</script>
	</head>
	<body class="easyui-layout" >
		<div region = "center" title = "员工工资信息" closable="false" >
			<div  border="false"  id="toolbar">
		        <table id="staff_salary_table"></table>  
			</div>
		</div>
		<div id = "salary_level_info_win" class = "easyui-window" buttonAlign = "center" data-options="title:'新增表单',iconCls:'icon-save'" closed="true"style="width:800px;height:300px;padding:5px;" >
			<div>
				<form action="">
					<div>
						<label></label>
					</div>
					<div align="center"><b><span style="font-size: 12pt">待录入工资的员工基本信息</span></b></div><br>
					<div  class="fitem">
						<label>员工姓名:&nbsp;&nbsp;</label>
						<input name = "" readOnly = "true" class="easyui-validatebox" required="true">
						<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;所属部门:&nbsp;&nbsp;</label>
						<input name = "" readOnly = "true"  class="easyui-validatebox" required="true">
					</div>
					<br>
					<div  class="fitem">
						<label>员工编号:&nbsp;&nbsp;</label>
						<input name = "" readOnly = "true"  class="easyui-validatebox" required="true">
					</div>
					<br>
					<div  class="fitem">
						<label>岗位级别:&nbsp;&nbsp;</label>
						<select class="easyui-combobox" name="" style="width: 185px;"required="true">
							<option value="1">全职</option>
							<option value="2">兼职</option>
							<option value="3">实习</option>
						</select>
						<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录入月份:&nbsp;&nbsp;</label>
						<input name = "" style = "width : 185px;" class = "easyui-datebox" required = "true">
					</div>
					<br>
				</form>
				<div id="salary_level-buttons" region = "south" style="text-align:center;margin-top:50px;padding:5px 0;">
					<a id = "salary_month_info_add" class="easyui-linkbutton" iconCls="icon-ok" >开始录入</a>
				</div>
			</div>
			<div id = "salary_info_win" href = salary_management_add.jsp class = "easyui-window" maximized = "true"  buttonAlign = "center" closed="true"style="width:800px;height:300px;padding:5px;" >
			</div>
		</div>
	</body>
</html>